home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD003b.dsk
/
HEADLINES.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
5KB
|
119 lines
10 REM *** INSTELLAR NEWS HEADLINES ***
20 REM *** 5-18-81 FIRST VERSION ***
30 D$ = CHR$(4)
35 IF Z >10 THEN PRINT "SORRY. MAXIMUM OF 10 HEADLINES AT A TIME.": PRINT : GOTO 130
40 REM PRINT MENU
50 HOME : PRINT
55 PRINT TAB( 5)"1 PRINT HEADLINES"
60 PRINT TAB( 5)"2 ADD TO DATA FILES"
65 PRINT TAB( 5)"3 CREATE NEW DATA FILE"
66 PRINT TAB( 5)"4 QUIT"
70 PRINT : PRINT "ENTER SELECTION NUMBER - ";: GET Z: PRINT Z
72 PRINT
75 IF Z <1 OR Z >4 THEN 70
80 IF Z = 1 THEN 100
85 IF Z = 2 THEN 1000
86 IF Z = 3 THEN 2000
90 END
100 REM PRINT HEADLINES
110 HOME : PRINT : INVERSE : PRINT "EXTRA EXTRA EXTRA EXTRA ": PRINT
120 PRINT TAB( 11)"READ ALL ABOUT IT!!! ": NORMAL : PRINT : PRINT
130 INPUT "HOW MANY HEADLINES DO YOU WANT TO SEE?";Z
135 IF Z >10 THEN PRINT "SORRY. MAXIMUM OF 10 HEADLINES AT A TIME": PRINT : GOTO 130
140 PRINT : PRINT "ONE MOMENT, PLEASE, WHILE I SET THE TYPE.": PRINT
150 PRINT D$"OPEN NOUNS,L40"
155 PRINT D$"READ NOUNS,R0": INPUT N
160 PRINT D$"OPEN VERBS,L40"
165 PRINT D$"READ VERBS,R0": INPUT V
170 PRINT D$"OPEN ADJECTIVES,L40"
175 PRINT D$"READ ADJECTIVES,R0": INPUT A
180 PRINT D$
190 FOR I = 1 TO Z
200 A1 = INT( RND(1) *A +1)
205 V1 = INT( RND(1) *V +1)
210 N2 = INT( RND(1) *N +1)
211 N1 = INT( RND(1) *N +1)
212 PRINT D$"READ NOUNS,R"N1: INPUT N1$
215 PRINT D$"READ NOUNS,R"N2: INPUT N$
220 PRINT D$"READ VERBS,R"V1: INPUT V$
225 PRINT D$"READ ADJECTIVES,R"A1: INPUT A$
230 PRINT D$
240 H$(I) = N$ +" " +V$ +" " +A$ +" " +N1$
250 NEXT
260 PRINT D$"CLOSE"
270 PRINT "HERE ARE YOUR HEADLINES"
280 PRINT D$"PR#1"
285 PRINT
290 PRINT "EXTRA EXTRA EXTRA EXTRA EXTRA": REM 10 SPACES
295 PRINT : PRINT TAB( 25)"READ ALL ABOUT IT!!!": PRINT : PRINT
300 FOR I = 1 TO Z
310 PRINT H$(I): PRINT
320 NEXT
330 PRINT D$"PR#0": PRINT
340 PRINT : INPUT "DO YOU WANT MORE HEADLINES?";Z$
350 IF LEFT$(Z$,1) = "Y" THEN 130
360 GOTO 50
1000 REM ADD TO DATA FILES
1010 HOME : INVERSE : PRINT "(ADD TO DATA FILES)": NORMAL : PRINT : PRINT
1020 PRINT "YOU MAY ADD DATA TO ONE OF THREE"
1025 PRINT "CATAGORIES.": PRINT
1030 PRINT TAB( 5)"1 NOUNS"
1040 PRINT TAB( 5)"2 VERBS"
1050 PRINT TAB( 5)"3 ADJECTIVES"
1060 PRINT TAB( 5)"4 QUIT"
1070 PRINT : PRINT "ENTER SELECTION NUMBER - ";: GET Z: PRINT Z
1080 IF Z <1 OR Z >4 THEN 1070
1090 IF Z = 1 THEN F$ = "NOUNS"
1095 IF Z = 2 THEN F$ = "VERBS"
1100 IF Z = 3 THEN F$ = "ADJECTIVES"
1110 IF Z = 4 THEN 50
1111 HOME : PRINT "ENTERIES MAY BE A SINGLE WORD OR A"
1112 PRINT "GROUP OF WORDS. THE MORE DESCRIPTIVE"
1113 PRINT "THE ENTERIES, THE BETTER.": PRINT : PRINT
1114 INVERSE : PRINT "EXAMPLE:": NORMAL
1115 PRINT TAB( 5)"ALIEN"
1116 PRINT TAB( 5)"SHIPLOAD OF VEGAN COLONISTS"
1117 PRINT TAB( 5)"BUYS CONTROL OF"
1118 PRINT TAB( 5)"SMOKE TRAILING"
1119 VTAB 23: PRINT "PRESS RETURN TO CONTINUE";: GET A$
1120 HOME : PRINT "TO STOP ENTERING, TYPE 'END'.": PRINT
1122 PRINT "LENGTH LIMIT IS 40 CHARACTERS.": PRINT
1125 PRINT D$"OPEN"F$",L40"
1130 PRINT D$"READ"F$",R0": INPUT P
1140 PRINT D$
1150 PRINT F$: INPUT A$
1160 IF LEN(A$) >40 THEN INVERSE : PRINT "LIMIT IS 40 CHARACTERS.": NORMAL : PRINT : GOTO 1150
1165 IF A$ = "END" THEN HOME : GOTO 1030
1170 P = P +1
1175 PRINT D$"OPEN"F$",L40"
1180 PRINT D$"WRITE"F$",R"P: PRINT A$
1190 PRINT D$"WRITE"F$",R0": PRINT P
1200 PRINT D$
1210 PRINT : PRINT : GOTO 1150
2000 REM CREATE NEW DATA FILE
2010 HOME : PRINT TAB( 10);: INVERSE : PRINT "CREATE NEW DATA FILE": NORMAL
2020 PRINT : PRINT "THIS PORTION OF THE PROGRAM SHOULD"
2025 PRINT "BE USED TO CREATE NEW DATA FILES."
2030 PRINT "WHEN THE NECESSARY FILES HAVE BEEN"
2035 PRINT "CREATED, ENTERING '4' WILL RETURN"
2036 PRINT "CONTROL TO THE MAIN MENU.": PRINT
2040 PRINT TAB( 5)"1 CREATE NOUN FILE"
2050 PRINT TAB( 5)"2 CREATE VERB FILE"
2060 PRINT TAB( 5)"3 CREATE ADJECTIVE FILE"
2070 PRINT TAB( 5)"4 QUIT"
2080 PRINT : PRINT "ENTER SELECTION NUMBER - ";: GET Z: PRINT Z
2090 IF Z <1 OR Z >4 THEN 2080
2091 IF Z = 1 THEN F$ = "NOUNS"
2092 IF Z = 2 THEN F$ = "VERBS"
2093 IF Z = 3 THEN F$ = "ADJECTIVES"
2095 IF Z = 4 THEN 50
2100 PRINT D$"OPEN"F$",L40"
2110 PRINT D$"WRITE"F$",R0": PRINT 0
2120 PRINT D$"CLOSE"
2130 HOME : GOTO 2040
3000 REM INTRO PAGE
3005 HOME
3010 VTAB 10: HTAB 12: INVERSE : PRINT "INTERSTELLAR NEWS"
3020 PRINT : PRINT " WITH THE LATEST NEWS FIRST FROM SPACE ": NORMAL
3030 VTAB 23: PRINT "PRESS RETURN TO CONTINUE";: GET A$
3040 RETURN